package com.briup.day09;

public class Test07 {

    private static int count;

    {
        count++;
    }

    public Test07() {
        System.out.println("这是无参构造器");
    }

    public Test07(int a) {
        System.out.println("这是无参构造器:" + a);
    }

    public static int getCount() {
        return count;
    }

    public static void main(String[] args) {
        Test07 test07 = new Test07();
        Test07 test071 = new Test07(1);
        Test07 test072 = new Test07(2);
        System.out.println("Test07类供被创建对象:"+Test07.getCount()+"次");
    }
}
